package com.ccc.dingtalk.service.dingtalk;

import com.ccc.dingtalk.pojo.dingtalk.DingDept;
import com.ccc.dingtalk.pojo.dingtalk.DingUser;

import java.util.List;

/**
 * @author superC
 * @version 1.0.0
 * @date 2023-08-09
 */

public interface UserService {

    List<DingUser> getAllUsersAndStoreDb(String accessToken) throws Exception;

    /**
     * 获取钉钉所有用户
     * @param accessToken
     * @return
     * @throws Exception
     */
    List<DingUser> getAllUsers(String accessToken) throws Exception;

    List<DingUser> getAllUsers(String accessToken, List<DingDept> deptList);

    List<String> getAllUserIds(String accessToken);

    List<String> getAllUserIds(String accessToken, List<DingDept> deptList);

}
